package com.iflytek.cosmo.ocr.common.enums;

public enum FeedbackReplyEnum {
    /** 初始状态, 未选择这个条件 */
    REPLY_NORMAL(0, "初始状态未选择"),

    /** 未删除 */
    REPLY_NO(1, "未回复"),

    /** 已删除 */
    REPLY_YES(2, "已回复")

    ;

    private Integer code;
    private String desc;

    FeedbackReplyEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static FeedbackReplyEnum getByCode(Integer code) {
        if (code == null) {
            return null;
        }

        for (FeedbackReplyEnum anEnum : values()) {
            if (anEnum.getCode().equals(code)) {
                return anEnum;
            }
        }

        return null;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
